<html>
<head><meta charset="utf-8"><title>vscode &quot;linkedProjects&quot; and problems file path · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/vscode.20.22linkedProjects.22.20and.20problems.20file.20path.html">vscode &quot;linkedProjects&quot; and problems file path</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="233347775"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/vscode%20%22linkedProjects%22%20and%20problems%20file%20path/near/233347775" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Charles <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/vscode.20.22linkedProjects.22.20and.20problems.20file.20path.html#233347775">(Apr 06 2021 at 16:14)</a>:</h4>
<p>Hi,</p>
<p>I am having some issue with vscode which I am not sure how to fix. I have a large project and I am using the "rust-analyzer.linkedProject" to point to different "Cargo.toml" file that I have in my large repo. </p>
<p>This sometime work fine, but most of the time (or after a couple of "Rust-Analyzer: Run"), it completely stop displaying "problems" until I restart vscode.</p>
<p>It look like vscode is having difficulty to match "problems" with the correct file. For example, The "problem" will show up in the "PROBLEMS" pane with a file path of "/src/lib.rs". When I click on it, I simply get a error: "Unable to open '<a href="http://lib.rs">lib.rs</a>': Unable to read file '/src/lib.rs' ...".</p>
<p>I was looking at modifying the "cargo check" command to give full path, but this does not seem to be a option. Anyone have a idea how to work around that ?</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>